package com.miracle.flexAPI.api.service.impl;

import com.miracle.flexAPI.api.mapper.UserMapper;
import com.miracle.flexAPI.api.entity.User;
import com.miracle.flexAPI.api.service.UserService;
import com.miracle.flexAPI.api.dto.UserDto;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class UserServiceImpl implements UserService {

    @Resource
    UserMapper mapper;

    @Override
    public List<Map<String, Object>> selectUser(UserDto dto) {
        return mapper.selectUser(dto);
    }

    @Override
    public int inserUser(User dto) {
        return mapper.inserUser(dto);
    }
}
